package com.cloudbroker.bcs.platform.ltb.middle.extservice.credits.impl;

import com.cloudbroker.bcs.csvc.credits.api.t2service.CreditsT2BizService;
import com.cloudbroker.bcs.csvc.credits.api.vo.back.CreditsBackVO;
import com.cloudbroker.bcs.csvc.credits.api.vo.back.CreditsVO;
import com.cloudbroker.bcs.csvc.credits.api.vo.back.ResultVO;
import com.cloudbroker.bcs.csvc.credits.api.vo.request.*;
import com.cloudbroker.bcs.platform.ltb.middle.extservice.credits.CreditsExtService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lili19289 on 2016/11/16.
 */
@Service
public class CreditsExtServiceImpl implements CreditsExtService {

    @Resource
    private CreditsT2BizService creditsT2BizService;

    @Override
    public CreditsVO functionAddCredits(CreditsOperForm form) {
        return creditsT2BizService.functionAddCredits(form);
    }
    @Override
    public CreditsVO functionConsumeCredits(CreditsOperForm form){
        return creditsT2BizService.functionConsumeCredits(form);
    }

    @Override
    public CreditsVO functionGetCreditsByUser(UserCreditsForm form) {
        return creditsT2BizService.functionGetCreditsByUser(form);
    }


    @Override
    public ResultVO functionQueryCredits(QueryCreditsForm form) {
        return creditsT2BizService.functionQueryCredits(form);
    }

    @Override
    public ResultVO functionQueryCreditsLog(QueryCreditslogForm form) {
        return creditsT2BizService.functionQueryCreditsLog(form);
    }

//    @Override
//    public HSBCPSBackVO func_add_credits_rule(CreditsRuleAddForm form) {
//        return creditsT2BizService.func_add_credits_rule(form);
//    }
//
//    @Override
//    public CreditsRuleBackVO func_findByBusinessType(CreditsRuleForm form) {
//        return creditsT2BizService.func_findByBusinessType(form);
//    }
}
